import request from '@/utils/request'

// 查询离职交接申请列表
export function listOaDepartTurnApply(query) {
  return request({
    url: '/module/oaDepartTurnApply/list',
    method: 'get',
    params: query
  })
}

// 查询离职交接申请详细
export function getOaDepartTurnApply(id) {
  return request({
    url: '/module/oaDepartTurnApply/' + id,
    method: 'get'
  })
}

// 新增离职交接申请
export function addOaDepartTurnApply(data) {
  return request({
    url: '/module/oaDepartTurnApply',
    method: 'post',
    data: data
  })
}

// 修改离职交接申请
export function updateOaDepartTurnApply(data) {
  return request({
    url: '/module/oaDepartTurnApply',
    method: 'put',
    data: data
  })
}

// 删除离职交接申请
export function delOaDepartTurnApply(id) {
  return request({
    url: '/module/oaDepartTurnApply/' + id,
    method: 'delete'
  })
}
